﻿@model ExcellOnServices.Models.Accounts_Company

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/DashBoard/Views/Shared/_Layout.cshtml";
}

<div class="panel panel-primary">
    <div class="panel-heading">Edit Profile</div>
    @using (Html.BeginForm("Edit", "Account", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <div class="panel-body">
            @Html.AntiForgeryToken()
            <div class="form-horizontal">               
                @Html.HiddenFor(model => model.Id)
                <div class="form-group">
                    @Html.LabelFor(model => model.BrandName, "Brand Name (*)", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.BrandName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.BrandName)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Address, "Address (*)", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextAreaFor(model => model.Address, new { @class = "form-control"})
                        @Html.ValidationMessageFor(model => model.Address)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Telephone,"Telephone (*)", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.Telephone, new { @class = "form-control"})
                        @Html.ValidationMessageFor(model => model.Telephone)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Description,"Description", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextAreaFor(model => model.Description, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                </div>
            </div>
        </div>
        @Html.ValidationSummary(true)
        <div class="panel-footer">
            <input type="submit" value="Save" class="btn btn-primary" />
            @Html.ActionLink("Cancel", "Index","Products", null, new { @class = "btn btn-primary btn-sm" })
        </div>
    }
</div>
@if (null != TempData["alertMessage"])
{
    <script type="text/javascript">
               alert("@TempData["alertMessage"]");
    </script>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
